import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/job_plan_details_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/job_plan_details_entity.g.dart';

@JsonSerializable()
class JobPlanDetailsEntity {
  JobPlanDetailsEntity();

  factory JobPlanDetailsEntity.fromJson(Map<String, dynamic> json) =>
      $JobPlanDetailsEntityFromJson(json);
  String? applyDepartmentId = '';
  String? applyDepartmentName = '';

  /// 申请人用户ID
  String? applyUserId = '';

  ///申请人用户姓名
  String? applyUserName = '';
  String? companyCode = '';
  String? createBy = '';
  String? createById = '';
  String? createDate = '';
  String? departmentId = '';
  String? departmentName = '';
  String? id = '';
  int? identity = 0;

  ///风险辨识人ID
  String? identityUserId = '';

  /// 风险辨识人姓名
  String? identityUserName = '';

  /// 纬度
  double? latitude = 0;

  /// 经度
  double? longitude = 0;
  String? planEndDate = '';
  String? planStartDate = '';

  /// 作业地点
  String? ticketAddress = '';

  /// 作业内容
  String? ticketContent = '';
  List<String>? ticketIdentityId = [];

  /// 作业名称
  String? ticketName = '';

  /// 作业编号
  String? ticketNo = '';
  String? ticketSource = '';
  List<String>? ticketToolId = [];
  String? updateBy = '';
  String? updateDate = '';

  Map<String, dynamic> toJson() => $JobPlanDetailsEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
